import { InjectionKey } from 'vue';

export interface Tree {
  id: string;
  name: string;
  leaf?: boolean;
  children?: Tree[];
}

export const TreeLabel = {
  id: 'id',
  label: 'name',
  children: 'children',
  isLeaf: 'leaf'
};

export const decisionKey = Symbol() as InjectionKey<any>;
